<?php header('Content-Type: text/html; charset=utf-8'); ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>


<!--
PAGE DOCUMENTATION:
==================
This page is used in an Ajax call to open an i-fram in a facebook dialog box so that
the recording flash could run.

Parameters that can be sent to this page:
----------------------------------------
message_name - message name picked by user.
recipient - if there exists a recipient to this message - his FB user ID (0 if not).
newFileName - the name of the file to be recorded (no extention).

-->

<?php
require_once('server.php');
$message_name = $_REQUEST['message_name'];
$recipient = $_REQUEST['recipient'];
$newFileName = $_REQUEST['newFileName'];

$message_name_after = htmlspecialchars(urldecode($message_name),null,'UTF-8');

$nameURL = htmlentities(urlencode($message_name_after),null,'UTF-8');


echo "<div align=\"center\">
		<fb:iframe src=\"$server/recorderIframe.php?".htmlentities("newFileName=$newFileName&recipient=$recipient&message_name=$nameURL")."\" width =\"250\" height=\"300\" frameborder=\"0\" scrolling=\"no\" />
	</div>";

?>
